<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/context/mytags.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <t:base type="jquery,easyui,tools,DatePicker,ckeditor"></t:base>
    <link rel="stylesheet" href="${webRoot}/plug-in/lhgDialog/skins/blue.css"/>
    <link rel="stylesheet" href="${webRoot}/plug-in/lhgDialog/skins/default.css"/>
    <script type="text/javascript" src="${webRoot}/plug-in/ajaxfileupload/ajaxfileupload.js"></script>
    <script type="text/javascript" charset="utf-8"
            src="${webRoot}/plug-in/ueditor1_4_3-utf8-jsp/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8"
            src="${webRoot}/plug-in/ueditor1_4_3-utf8-jsp/ueditor.all.min.js"></script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8"
            src="${webRoot}/plug-in/ueditor1_4_3-utf8-jsp/lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript" charset="utf-8" src="${webRoot}/plug-in/QQgeo/geo.js"></script>
    <script type="text/javascript" charset="utf-8" src="${webRoot}/plug-in/My97DatePicker/WdatePicker.js"></script>
</head>

<body scroll="no">
<t:formvalid formid="reviewForm" dialog="true" usePlugin="password" layout="table"
             action="studioController.do?reviewSubmit">
    <input name="studioId" type="hidden" value="${officialWhEntity.articleId}">

    <div class="new_table_list">
        <table cellpadding="0" cellspacing="1" class="formtable" style="padding-left: 50px;padding-right: 50px;">
            <tbody>
            <tr>
                <td align="left">
                        ${officialWhEntity.title}
                </td>
                <td align="right" rowspan="2">
                        ${officialWhEntity.titleText}
                </td>
            </tr>
            <tr>
                <td align="left">
                        ${officialWhEntity.customerEntity.realname}&nbsp;&nbsp;&nbsp;&nbsp;${officialWhEntity.publishTime}
                </td>
            </tr>
            <tr>
                <td colspan="2">
                        ${officialWhEntity.content}
                </td>
            </tr>
        </table>
    </div>
</t:formvalid>
<script>
    $(function () {
        $("input").attr("readonly", true);
        $("input").css("color", "#929292");

        $("textarea").attr("readonly", true);
        $("textarea").css("color", "#929292");
        $("img").css("color", "#929292");

        var isReview = "${studioEntity.isReview}";
        $("#reviewStatus").val(isReview);
        $("#reviewStatus").css("color", "#929292");
        $("#reviewStatus").attr("disabled", "disabled");
    });
    //    function initIsReview(){
    //       $("#isReview").val( $("#reviewStatus").val());
    //    }
    <%--$(function(){--%>
    <%--var province = '${consultant.aCustomerEntity.province}';--%>
    <%--var city =  '${consultant.aCustomerEntity.city}';--%>
    <%--var area = '${consultant.aCustomerEntity.area}';--%>
    <%--//        opt0=[province,city,area];;--%>
    <%--setup();--%>
    <%--initSelValue(province,city,area);--%>
    <%--$("#birthday").val(formatD());//生日--%>
    <%--});--%>

    <%--/*--%>
    <%--*日期格式转换--%>
    <%--*/--%>
    <%--function formatD(){--%>
    <%--var date =  '${consultant.aCustomerEntity.birthday}';--%>
    <%--if(date != ''){--%>
    <%--return formatDate(date);--%>
    <%--}else {--%>
    <%--return '';--%>
    <%--}--%>
    <%--}--%>
    <%--function formatDate(date) {--%>
    <%--var d = new Date(date),--%>
    <%--month = '' + (d.getMonth() + 1),--%>
    <%--day = '' + d.getDate(),--%>
    <%--year = d.getFullYear();--%>

    <%--if (month.length < 2) month = '0' + month;--%>
    <%--if (day.length < 2) day = '0' + day;--%>

    <%--return [year, month, day].join('-');--%>
    <%--}--%>
    <%--/**--%>
    <%--* 添加标签--%>
    <%--* @param second_classes--%>
    <%--*/--%>
    <%--function add_second_classes(second_classes){--%>
    <%--var title="添加标签";--%>
    <%--var url="consultantController.do?secondClasses&ids="+second_classes+"&upiframename="+window.name;--%>
    <%--createwindow(title, url, 580, 530);--%>
    <%--}--%>

    <%--/**--%>
    <%--* 分类回调--%>
    <%--*/--%>
    <%--function classes_callback(fname,ids,tags){--%>
    <%--console.log("回调");--%>
    <%--$("iframe[name="+fname+"]", this.parent.parent.document)[0].contentWindow.f_closeWindow();--%>
    <%--$("#secondClasses").val(ids);--%>
    <%--$("#secondClassesTag").html(tags);--%>
    <%--}--%>

</script>
</body>

</html>